package com.course.domain.dao;

import com.course.domain.model.SpecInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Justin on 2017/5/12.
 */
public interface SpecInfoDao extends JpaRepository<SpecInfo, Integer> {

    List<SpecInfo> findAllByStatus(int status);

    List<SpecInfo> findAllByStateAndStatus(int state, int status);
}
